if (!jsx3.lang.Class.forName("ux.cdb.admin.queries.loan.DetailDialog")) {

jsx3.Class.defineClass(
	"ux.cdb.admin.queries.loan.DetailDialog", jsx3.gui.Dialog, [],
	function (dialog) {
		dialog.prototype.initialize = function(){
			//var dialog = this;
			//var tebbedPaneBlock = dialog.getDescendantOfName('tabbedpane_block');
			//ux.megatron.Main.loadUIResourceAsync(tebbedPaneBlock, "ux.cdb.admin", "ux/cdb/admin/loan/ui/LoanManageTebbedpane.xml", this, function(){});
			
		};
		
        dialog.prototype.loadDetails = function(strRECORDID, studentID) {
            var tabLoanBlock = this.get('tabbedpane_block');
            tabLoanBlock.selectRecordId = strRECORDID;
            tabLoanBlock.studentID = studentID;
            var me = this;
            if (!tabLoanBlock.getFirstChild()) {
                ux.megatron.Main.loadUIResourceAsync(tabLoanBlock, "ux.cdb.admin", "ux/cdb/admin/loan/ui/LoanManageTebbedpane.xml", me, me.onTebbedPaneLoaded);
            } else {
                tabLoanBlock.getFirstChild().selectRecordId = strRECORDID;
                tabLoanBlock.getFirstChild().studentId = studentID;
      			this.onTebbedPaneLoaded();
            }
        };

        dialog.prototype.onTebbedPaneLoaded = function() {
            var tabLoanBlock = this.get('tabbedpane_block');
			//tabLoanBlock.getFirstChild().loadTabDetail();
			tabLoanBlock.getFirstChild().initialize();
        }

	});

}